package org.smr.ministore.service;

import org.blade.utils.Pager;
import org.smr.ministore.entities.GoodsPrice;
import org.blade.service.base.BaseService;
import org.blade.service.base.BaseBatchService;
import org.blade.service.base.PaginationQueryService;

import java.util.Map;

/**
 * @author blade
 *
 */
public interface GoodsPriceService extends BaseService<Long, GoodsPrice>,
                                        BaseBatchService<Long, GoodsPrice>,
                                        PaginationQueryService<Long, GoodsPrice> {


    /**
     * 获取商口列表
     * @param organId
     * @param typeId
     * @param brandId
     * @param goodsName
     * @param quote
     * @param pageSize
     * @param pageNum
     * @return
     */
    Pager<Map<String, Object>> getGoodsPriceList(Long organId,
                                                Long typeId,
                                                Long brandId,
                                                String goodsName,
                                                Integer quote ,
                                                Long pageSize,
                                                Long pageNum);



    /**
     * 获取商口列表
     * @param params
     * @param pageSize
     * @param pageNum
     * @return
     */
    Pager<Map<String, Object>> getGoodsPriceList(Map<String, Object> params, Long pageSize, Long pageNum);




    /**
     * 获取商品价格
     * @param organId
     * @param goodsId
     * @return
     */
    GoodsPrice getGoodsPriceBy(Long organId, Long goodsId );

}
